package com.checkoutcheckins.server.auth;

import oauth.signpost.OAuthConsumer;
import oauth.signpost.OAuthProvider;
import oauth.signpost.basic.DefaultOAuthConsumer;
import oauth.signpost.basic.DefaultOAuthProvider;

public class CheckoutCheckinsOAuth {

	OAuthConsumer consumer = null;

	OAuthProvider provider = null;

	public OAuthConsumer getConsumer() {

		if (consumer == null) {
			consumer = new DefaultOAuthConsumer(
					"",
					"");
		}

		return consumer;
	}

	public void setConsumer(OAuthConsumer consumer) {
		this.consumer = consumer;
	}

	public OAuthProvider getProvider() {
		if (provider == null) {
			provider = new DefaultOAuthProvider(
					"http://foursquare.com/oauth/request_token",
					"http://foursquare.com/oauth/access_token",
					"http://foursquare.com/oauth/authorize");
		}
		
		return provider;
	}

	public void setProvider(OAuthProvider provider) {
		this.provider = provider;
	}

}
